package com.zoiz.plus.extend;

import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.zoiz.plus.renderer.Renderer;

public class RedirectRender extends Renderer{
	private String s;
	
	public RedirectRender(String redirect) {
		super();
		this.s = redirect;
	}

	@Override
	public void render(ServletContext servletContext, HttpServletRequest request,
			HttpServletResponse response) throws Exception {
		// TODO Auto-generated method stub
			response.sendRedirect(s);
			return;
	}
	
}
